package cn.tedu._05weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserRegDTO {
    //@NotNull(message = "用户名不能为null")
    @Pattern(regexp = "^([a-zA-Z]{1,14}|[\\\\u4e00-\\\\u9fa5]{1,7})$",message = "用户名最长14个英文或者7个汉字")
    @ApiModelProperty(value = "用户名",required = true )
    private String username;
    @ApiModelProperty(value = "密码",required = true )
    private String password;
    @ApiModelProperty(value = "昵称",required = true )
    private  String nickname;
}
